import mockRequest from "@/utils/mockRequest";
const state = {
  SaleData:{}
};
const mutations = {
  GETSALEDATA(state,value){
    state.SaleData = value
  }
};
const actions = {
  async getSaleData({commit}){
      let result = await mockRequest.get('/home/list')
      if(result.code == 20000){
          commit('GETSALEDATA',result.data)
      }
  }
};
const getter = {};
export default {
  state,
  mutations,
  actions,
  getter
}
